package br.unisul.com.connection;

import java.sql.Connection;
import java.sql.DriverManager;


public class ConnectionFactory {
	public Connection getConnection() {
		
			
			try {
				Class.forName("com.mysql.jdbc.Driver");
				return DriverManager.getConnection("jdbc:mysql://localhost/contato", "root", "mysql");
			} catch (Exception e) {
				
				e.printStackTrace();
					return null; 
			}
		
			
		
		
	}

}
